/*
 * @(#)ExchangeException.java2015-8-13 下午11:39:03
 * drsp-platform-communication
 * Copyright 2015 Thuisoft, Inc. All rights reserved.
 * THUNISOFT PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */
package com.wk.springboot.httpUtils;

/**
 * @Classname DrspHttpException
 * @Description httpClient异常处理类
 * @Date 2020/8/7 11:15
 * @Author by weikai
 */
public class DrspHttpException extends Exception {

    /**
     * 
     */
    private static final long serialVersionUID = 1724089330487288947L;
    
    private int httpCode;
    
    /**
     * 无参构造
     */
    public DrspHttpException() {
        super();
    }
    
    
    public DrspHttpException(int httpCode, Throwable cause) {
        super(cause);
        this.httpCode = httpCode;
    }
    
    
    public DrspHttpException(int httpCode, String message) {
        super(message);
        this.httpCode = httpCode;
    }
    
    /**
     * 异常有参构造
     * @param message  异常内容
     * @param cause 异常堆栈信息
     */
    public DrspHttpException(String message, Throwable cause) {
        super(message, cause);
    }

    /**
     *  异常有参构造
     * @param message 异常内容
     */
    public DrspHttpException(String message) {
        super(message);
    }

    /**
     * 异常有参构造
     * @param cause  异常堆栈信息
     */
    public DrspHttpException(Throwable cause) {
        super(cause);
    }


    public int getHttpCode() {
        return httpCode;
    }

    
    
    

}
